-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Use sdk paths! #62619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use sdk paths! #62619
Conversation
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
It looks like this might be blocked because it breaks the Blazor template tests. Do we have a path forward here? cc: @ilonatommy |
/azp run |
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds SDK path configuration to improve local development by automatically looking for the .NET SDK in the local .dotnet/
folder, eliminating the need to manually activate the environment when building from the command line.
Key changes:
- Added SDK path resolution to check local
.dotnet
folder first before falling back to host SDK - Added a helpful error message when the SDK cannot be found
"version": "10.0.100-rc.1.25411.109" | ||
"version": "10.0.100-rc.1.25411.109", | ||
"paths": [ ".dotnet", "$host$" ], | ||
"errorMessage": "The .NET SDK could not be found, run ./restore.cmd or ./restore.sh first." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error message references './restore.cmd' and './restore.sh' scripts, but based on the coding guidelines, the repository uses './build.sh' scripts in subdirectories for building and running tests. Consider updating the error message to reference the correct scripts or provide more accurate guidance.
"errorMessage": "The .NET SDK could not be found, run ./restore.cmd or ./restore.sh first." | |
"errorMessage": "The .NET SDK could not be found. Please run ./build.sh (or ./build.cmd on Windows) in the appropriate subdirectory first." |
Copilot uses AI. Check for mistakes.
I'm sorry @BrennanConroy, I did not mean to merge it yet, we can make it cleaner, without 2 |
Small local development improvement. When building on the command line you no longer need to "activate" and we'll automatically look in the
.dotnet/
folder.dotnet/runtime#113512
Sadly VS doesn't seem to work yet, it grabs the right SDK, but doesn't seem to look at the same folder for runtimes yet. See dotnet/sdk#49363